<?php

class Logout extends Controller {
	public function html() {
		//已登录跳转到转入页面
		$mUser = new User_model();
		$mUser->logout();
		$url = $this->backurl();
		if(!$url) $url = '/user/login';
		header('Location: '.$url);
	}
}